package com.xingu.xg.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 
 * @TableName nodes
 */
@TableName(value ="nodes")
@Data
public class Nodes implements Serializable {
    /**
     * 
     */
    @TableId(value = "NodeId", type = IdType.AUTO)
    private Integer nodeId;

    /**
     * 
     */
    @TableField(value = "ParentId")
    private Integer parentId;

    /**
     * 
     */
    @TableField(value = "NodeName")
    private String nodeName;

    /**
     * 
     */
    @TableField(value = "CreatedAt")
    private Date createdAt;

    /**
     * 
     */
    @TableField(value = "UpdatedAt")
    private Date updatedAt;

    /**
     * 
     */
    @TableField(value = "SortOrder")
    private Integer sortOrder;

    @TableField(exist = false)
    private List<Nodes> children;
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}